package com.fcscs.cservice.ws.client.bookingservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.bookingservice.UpdateBookingStatusRequest;
import com.fcscs.cservice.ws.schema.bookingservice.UpdateBookingStatusResponse;

public class GetUpdateBookingStatusClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetUpdateBookingStatusClient.class);

	public UpdateBookingStatusResponse getUpdateBookingStatus(UpdateBookingStatusRequest req) {
		UpdateBookingStatusResponse resp = (UpdateBookingStatusResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getBookingIdAndMessageList().size());
		return resp;
	}
}
